<?php
/**
 * Room Table class for RoomBooking Component
 *
 * @version    1.0
 * @package    Joomla
 * @subpackage RoomBooking
 * @copyright (C) 2011 Giovanni Marzulli
 * @license	   GNU/GPL
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class TableRoom extends JTable
{
	/**
	 * Primary Key
	 *
	 * @var int
	 */
	var $id = null;
        
        /**
	 * @var int
	 */
	var $room_type_id = null;

	/**
	 * @var string
	 */
	var $name = null;
	
	/**
	 * @var int
	 */
	var $floor = null;
	
	/**
	 * @var boolean
	 */
	var $open = null;
	
	/**
	 * @var int
	 */
	var $id_building = null;	
	
	/**
	 * Constructor
	 *
	 * @param object Database connector object
	 */
	function TableRoom(& $db) {
		parent::__construct('#__roombooking_rooms', 'id', $db);
	}
}